<?php
/**
 * appRain v 0.1.x
 *
 * LICENSE
 *
 * This source file is subject to the MIT license that is bundled
 * with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.opensource.org/licenses/mit-license.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@apprain.com so we can send you a copy immediately.
 *
 * @copyright  Copyright (c) 2010 appRain, Team. (http://www.apprain.com)
 * @license    http://www.opensource.org/licenses/mit-license.php MIT license
 *
 * HELP
 *
 * Official Website
 * http://www.apprain.com/
 *
 * Download Link
 * http://www.apprain.com/download
 *
 * Documents Link
 * http ://www.apprain.com/docs
 */

    /*
     * Calling validation
     */
    echo App::Load("Helper/Javascript")->validation_map(
															Array(
																	'_errBg'=>ERROR_BACKGROUND,
																	'_dflBg'=>DEFAULT_BACKGROUND,
																	'_autoSubmit'=>'false',
																	'_errToolTips'=>'false',
																	'_errorMark' => 'inline'
																)
														);

    /*
     * Configure the ajax submit form
     */
    echo App::Load("Helper/Javascript")->ajax_submit(array("form_name"=>"#signup_form","debug"=>"false","auto_hide"=>"true","message_element"=>".message"));

    /*
     * Message display Section
     */
    echo $this->get_tag("strong",NULL,"Member Registration");
    echo $this->get_tag("span",array("class"=>"message"),"");

    /* Right column */
    echo $this->get_tag("form",array("method"=>"post","class"=>"app_form app_validation","id"=>"signup_form","action"=> $this->baseurl("/member/signup")));
        echo $this->get_tag("ul");
            echo App::Load("Helper/Html")->get_from_row("First Name",App::Load("Helper/Html")->inputTag("data[Member][f_name]","",array("class"=>"input check_notempty",'id'=>'f_name')) );
            echo App::Load("Helper/Html")->get_from_row("Last Name",App::Load("Helper/Html")->inputTag("data[Member][l_name]","",array("class"=>"input check_notempty",'id'=>'l_name')) );
            echo App::Load("Helper/Html")->get_from_row("Country", App::Load("Helper/Html")->countryTag("data[Member][country]","",array("title"=>"Country","id" => "country","class"=>"select check_notempty"),array('title'=>'Your Country')) );
            echo App::Load("Helper/Html")->get_from_row("Address",App::Load("Helper/Html")->textareaTag("data[Member][address]","",array("rows"=>"5","class"=>"input",'id'=>'website')) );
            echo App::Load("Helper/Html")->get_from_row("Email ",App::Load("Helper/Html")->inputTag("data[Member][email]","",array("class"=>"input check_email",'id'=>'email')) );
            echo App::Load("Helper/Html")->get_from_row("Password",App::Load("Helper/Html")->passwordTag("data[Member][password]","",array("class"=>"input check_password",'id'=>'login_password')) );
            echo App::Load("Helper/Html")->get_from_row("Confirm Password",App::Load("Helper/Html")->passwordTag("data[Member][clogin_password]","",array("longdesc"=>"Type same as 'Password' field","title"=>"Confirmed Password","class"=>"input check_notempty",'id'=>'clogin_password')) );
            echo App::Load("Helper/Html")->get_from_row(App::Helper('Html')->capachaTag("memberregi",Array("bk_color"=>"#FFFFFF","font_color"=>"#000000")),App::Load("Helper/Html")->inputTag("data[Member][capacha]","",array("title"=>"Confirmed Password","class"=>"input check_notdefault",'id'=>'capachs','longdesc'=>'Please type text correctly, display on top image')) );
            echo App::Load("Helper/Html")->get_from_row(App::Load("Helper/Html")->submitTag("data[Member][submit]","Register Me",array("class" => "button")) );
        echo $this->get_tag("/ul");
    echo $this->get_tag("/form");
?>